package com.bootdo.appsystem.dao;

import com.bootdo.appsystem.domain.OrderproductDO;

import java.util.List;
import java.util.Map;

import com.bootdo.appsystem.vo.OrderProductAndUserInfo;
import org.apache.ibatis.annotations.Mapper;

/**
 * 
 * @author xiaoxiao
 * @email 806191255@qq.com
 * @date 2018-05-12 14:42:14
 */
@Mapper
public interface OrderproductDao {

	OrderproductDO get(Integer oid);

	List<OrderproductDO> getByOrderCode(String orderCode);

	List<OrderproductDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);

	int save(OrderproductDO orderproduct);
	
	int update(OrderproductDO orderproduct);
	
	int remove(Integer OID);
	
	int batchRemove(Integer[] oids);

	List<OrderProductAndUserInfo> listAndUserInfo(Map<String, Object> map);

	int countAndUserInfo(Map<String, Object> map);
}
